# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=diffoscope
pkgver=154
pkgrel=0
pkgdesc="In-depth comparison of files, archives, and directories"
options="!check" # Requires unpackaged 'tlsh'
url="https://diffoscope.org/"
arch="noarch !armv7 !x86 !mips !mips64" # py3-magic, py3-libarchive-c missing
license="GPL-3.0-or-later"
makedepends="python3-dev py3-setuptools py3-docutils"
depends="py3-magic py3-libarchive-c"
checkdepends="py3-pytest gzip bzip2 unzip libarchive-tools"
source="https://salsa.debian.org/reproducible-builds/diffoscope/-/archive/$pkgver/diffoscope-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="4bbdd8395ff35f4c5b8f85c29bb61b08631a234910ed16120f5959e3ebb24220ce858f7e376b67dd85ee5389197dcf46a8fdddfef0a0dd182f66fdb56ee81ce4  diffoscope-154.tar.gz"
